﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 凯蒽斯.Dto
{
    [SugarTable("User")]
    public class User
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] // 主键+自增
        public int Id { get; set; }

        [SugarColumn(ColumnName = "UserName", Length = 50, IsNullable = false)] // 字段名、长度、非空
        public string Name { get; set; }
        [SugarColumn(ColumnName = "PassWord", Length = 50, IsNullable = false)] // 字段名、长度、非空
        public string PassWord
            { get; set; }
    }
}
